/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pl.makimo.fuzzy.sets.memberships;

import java.util.HashMap;
import java.util.Map;

import pl.makimo.data.Record;

/**
 *
 * @author Mateusz Papiernik
 */
public class DiscreteMembershipFunction extends MembershipFunction {
	public Map<Object, Object> memberships = new HashMap<Object, Object>();
	
	public DiscreteMembershipFunction(Map<Object, Object> memberships) {
		super();
		this.memberships = memberships;
	}

	@Override
    public Object value(Object element) {
        return memberships.get(element);
    }
}
